package com.tarena.luban.test.config.condition;

import com.tarena.luban.test.bean.Bean02;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnBean(value = {Bean02.class})
public class MyConditionConfig02 {
    public MyConditionConfig02() {
        System.out.println("条件配置类02,满足条件");
    }
}
